package com.hxzy.common.util;

import cn.hutool.crypto.asymmetric.RSA;

/**
 * 非对称加密工具
 */
public class RsaUtil {

    /**
     * 公钥 加密
     */
    public final static String PUBLIC_KEY="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCq7ytYTQPmS7vOiJNHk+gclq3ks5kiRf6XvnRoPfMcJzitxHA+Ius5qVPIzGXH6clhBw3BRwsUQ4PVjjKByfqj2nB5otTb7o4iSht81l9S2iaBlQU70pwrul2WE2wykm42mALtq9ZdOULfHHI8SK67pB0SPNrfPDDemLhkbmvGNQIDAQAB";

    /**
     * 私钥 解密
     */
    public final static String PRIVATE_KEY="MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAKrvK1hNA+ZLu86Ik0eT6ByWreSzmSJF/pe+dGg98xwnOK3EcD4i6zmpU8jMZcfpyWEHDcFHCxRDg9WOMoHJ+qPacHmi1NvujiJKG3zWX1LaJoGVBTvSnCu6XZYTbDKSbjaYAu2r1l05Qt8ccjxIrrukHRI82t88MN6YuGRua8Y1AgMBAAECgYAUhAfYnXG/infG5lHVpZ/BDVK0tYZGfKPTHvrwvKgOSSTT3P+4bXonCGGJIwMqTISCM+sHjMPR0aKj7Iu3qSrUR74XR4DVg+bWUvvVwSnG1gCJ7G9DMj6Nze4vPHbF5pYuSd0kLw32WKnZGG7DMuP4z/gu0RjPS/IrKbvSMyXlJwJBAN34zwZCxvts+m13qXcAyQ5enu8iOcr9nDfL3pw0zGi/fFB5++XxD3jpjukxEwikaaHZ5xQdf4DKj4dTyF64vd8CQQDFI2j4Ey9hTq4SBVB5KpAHwutKLs7tW4wSUEiF44sy+MHW5syybFLCYzRHEZdU16aXh0yjwkJg02S6+TivBNZrAkEAlBr/h13nBrugHIpLOGv9uujHgyeDCD5PjaspzXAtM3cQq2G5AaPmfvbXtCBaYtnQ4X1TAcjs2jJNsi3k886wYQJBAMADOmWOgjKcKQ3iYTxzSXBV2UkbCG/GIEtiKRFHzTgrdNn1WWFcAsvVRoEGUEjR9zBWFz7VokOfAtjej+hgpNsCQQDP7fVjo0ddqeoDrZRLljNrfKEfTxQvbFsfFlpRtQnLmxGLNZecFoJ0FL5ypHHTza3bijzth4gfq6JMSFWh/nZ/";


    public static RSA getRsa(){
        return new RSA(PRIVATE_KEY,PUBLIC_KEY);
    }

}
